import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const datamart: AppRouteModule = {
  path: '/datamart',
  name: 'Datamart',
  component: LAYOUT,
  redirect: '/datamart/plants',
  meta: {
    orderNo: 10,
    icon: 'ion:grid-outline',
    title: t('datamart'),
  },
  children: [
    {
      path: 'plants',
      name: 'Plants',
      component: () => import('/@/views/datamart/plants/index.vue'),
      meta: {
        // affix: true,
        title: t('plants'),
      },
    },
    {
      path: 'animals',
      name: 'Animals',
      component: () => import('/@/views/datamart/animals/index.vue'),
      meta: {
        title: t('animals'),
      },
    },
  ],
};

export default datamart;
